package cn.sytton.taffecloud.common.api.sentinel.fallback;

import org.springframework.cloud.openfeign.FallbackFactory;

import java.lang.reflect.Method;

/**
 * 抽象 统一FallbackFactory熔断降级处理
 *
 * @author skyrock
 */
public abstract class AbstractFallbackFactory<T> implements FallbackFactory<T> {
    @Override
    public T create(Throwable cause) {
        //废掉
        return null;
    }
    // 需要method获取对应的接口class
    public abstract T create(Method method, Throwable cause);
}
